package sgi.message;

/**query message for approving change of tariffs*/
public class MessageApproveTariff extends Message {


	private static final long serialVersionUID = 1L;
	private String qOldTariff;
	private boolean approve;
	
	
	public boolean isApprove() {
		return approve;
	}

	public MessageApproveTariff(boolean approve) {
		super("UPDATE `sgi`.`tariff` SET `pending`='" + (approve ? "1" : "3") +"' WHERE `pending`='2'");
		setqOldTariff("update tariff set pending=0 where pending=1");
		this.approve = approve;
	}

	public String getqOldTariff() {
		return qOldTariff;
	}

	public void setqOldTariff(String qOldTariff) {
		this.qOldTariff = qOldTariff;
	}
}
